import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        AA a = new AA();
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        System.out.println(a.odd(x));
    }
}

class AA {
    public boolean odd(int n) {
        return n % 2 == 0;
    }


}